package wzc.design_pattern.construction.flyweight;

/**
 * @Author 那和不是个啥
 * @Date 2025/7/20
 * @Description
 */

public class Circle implements Shape {
    // 内部状态（共享）
    private String color;

    public Circle(String color) {
        this.color = color;
    }

    @Override
    public void draw(int x, int y, int radius) {
        System.out.println("绘制园：颜色=" + color + ", 位置=(" + x + "," + y + ")，半径" + radius);
    }
}
